<%@ page contentType="text/html;charset=UTF-8" %>

<html>
<head>
  <meta name="layout" content="template">
</head>
<body>
<div class="section">
  <h1>Confirm Hotel Booking</h1>
</div>
<div class="section">
  <g:form action="bookingHotel">
    <fieldset>
      <div class="entry">
        <div class="label">Name:</div>
        <div class="output">${hotel.name}</div>
      </div>
      <div class="entry">
        <div class="label">Address:</div>
        <div class="output">${hotel.address}</div>
      </div>
      <div class="entry">
        <div class="label">City, State:</div>
        <div class="output">${hotel.city}, ${hotel.state}</div>
      </div>
      <div class="entry">
        <div class="label">Zip:</div>
        <div class="output">${hotel.zip}</div>
      </div>
      <div class="entry">
        <div class="label">Country:</div>
        <div class="output">${hotel.country}</div>
      </div>
      <div class="entry">
        <div class="label">Total payment:</div>
        <div class="output">$${booking.total()}</div>
      </div>
      <div class="entry">
        <div class="label">Check In Date:</div>
        <div class="output">${booking.checkinDate}</div>
      </div>
      <div class="entry">
        <div class="label">Check Out Date:</div>
        <div class="output">${booking.checkoutDate}</div>
      </div>
      <div class="entry">
        <div class="label">Credit Card #:</div>
        <div class="output">${booking.creditCard}</div>
      </div>
      <div class="entry">
        <div class="label">Credit Card Name:</div>
        <div class="output">${booking.creditCardName}</div>
      </div>
      <div class="entry">
        <div class="label">&#160;</div>
        <div class="input">
          <g:submitButton name="confirm" value="Confirm"/>&#160;
          <g:submitButton name="backToSearch" value="Cancel"/>
        </div>
      </div>
    </fieldset>
  </g:form>
</div>
</body>
</html>